<template>
  <div class="resume_header">
    <span>公司岗位审核</span>
  </div>
  <div class="resume_center">
    <el-table :data="filterTableData.slice((page - 1) * limit, page * limit)" style="width: 100%" height="520px"
      size="large" @filter-change="tablesort">

      <el-table-column label="岗位名称" prop="jobName" width="220px" sortable column-key="jobIndustry"
        :filters="filterJobNameData" />
      <!-- <el-table-column label="所属公司" prop="businessName" width="190px" /> -->
      <el-table-column label="提交人" prop="hrName" width="140px" sortable column-key="hrName" :filters="filterHRData" />
      <el-table-column label="提交时间" prop="confirmTime" sortable column-key="confirmTime"
        :filters="filterConfirmTimeData" />
      <el-table-column label="审核时间" prop="auditTime" sortable column-key="auditTime" :filters="filterAduitTimeData" />
      <el-table-column label="审核状态" prop="auditState" sortable column-key="auditState" :filters="filterAduitStateData">
        <template #default="scope">
          <el-tag :type="ElTagState(scope.row.auditState)">
            {{ scope.row.auditState }}
          </el-tag>

        </template>
      </el-table-column>
      <el-table-column label="操作类型" prop="operationType" sortable column-key="operationType"
        :filters="filterOperationTypeData">
        <template #default="scope">
          {{ scope.row.operationType }}
        </template>
      </el-table-column>
      <el-table-column align="right" min-width="100px" max-width="260px">
        <template #header>
          <el-input v-model="search" size="default" placeholder="搜索" />
        </template>
        <template #default="scope">
          <el-button size="default" type="primary" @click="handleShowJObInfo(scope.$index, scope.row)">查看</el-button>
        </template>
      </el-table-column>
    </el-table>

    <PreAuditJobDialog v-if="preAuditJobInfoDialog" :closePreAuditJobInfoDialog="closePreAuditJobInfoDialog"
      :preAuditJobInfoDialog="preAuditJobInfoDialog" />

    <div class="pagination">
      <Pagination :page="page" :limit="limit" :handleSizeChange="handleSizeChange"
        :handleCurrentChange="handleCurrentChange" :filterTableData="filterTableData" :pagesizes="pagesizes" />
    </div>

  </div>
</template>
<script lang='ts' setup>
import { TableColumnCtx } from 'element-plus/es/components/table/src/table-column/defaults';
import { eGetAuditJobs, ePreAuditJobs } from "@/api/enterpriseApi"
import { computed, ref, onMounted, reactive, watch, onBeforeMount } from 'vue'
import { useStore } from "vuex"
import Pagination from "@/components/Pagination.vue"
import { data, elmessage, ElTagState } from "@/hook/hook";
import { useRouter } from "vue-router"

import PreAuditJobDialog from "@/components/PreAuditJobDialog.vue"
const store = useStore()
const router = useRouter()


// 表格数据定义
interface Jobs {
  auditId: string
  jobId: string
  jobName: string
  jobIndustry: string
  hrId: string
  hrName: string
  confirmTime: string
  auditTime: string
  auditState: string
  isAudit: string
  operationType: string
  // eId: string
  // businessName: string
}
const tableData: Jobs[] = reactive([])

const search = ref('')
const filterTableData = computed(() =>

  tableData.filter(
    (data, index) =>
      !search.value ||
      // 通过岗位名称筛选
      data.jobName.toLowerCase().indexOf(search.value.toLowerCase()) !== -1
  )
)
// 定义筛选类型
interface filterType {
  text: string,
  value: string
}
var jobNameArr: any = reactive([])
var hrNameArr: any = reactive([])
var confirmTimeArr: any = reactive([])
var auditTimeArr: any = reactive([])
var auditStateArr: any = reactive([])
var operationTypeArr: any = reactive([])

const tableData_1: Jobs[] = reactive([])

const setJobIndustryArr = (arr: any) => {
  jobNameArr = arr
}
const getJobIndustryArr = () => {
  return jobNameArr
}

const setHRNameArr = (arr: any) => {
  hrNameArr = arr
}
const getHRNameArr = () => {
  return hrNameArr
}
const setConfirmTimeArr = (arr: any) => {
  confirmTimeArr = arr
}
const getConfirmTimeArr = () => {
  return confirmTimeArr
}
const setAuditTimeArr = (arr: any) => {
  auditTimeArr = arr
}
const getAuditTimeArr = () => {
  return auditTimeArr
}
const setAuditStateArr = (arr: any) => {
  auditStateArr = arr
}
const getAuditStateArr = () => {
  return auditStateArr
}
const setOperationTypeArr = (arr: any) => {
  operationTypeArr = arr
}
const getOperationTypeArr = () => {
  return operationTypeArr
}

const tablesort = (filterArr: Jobs) => {
  // 清除原表格数据
  tableData.splice(0, tableData.length)


  if ((typeof (filterArr.jobIndustry)) == "object") {
    setJobIndustryArr(filterArr.jobIndustry)
  }
  if ((typeof (filterArr.hrName)) == "object") {
    setHRNameArr(filterArr.hrName)
  }
  if ((typeof (filterArr.confirmTime)) == "object") {
    setConfirmTimeArr(filterArr.confirmTime)
  }
  if ((typeof (filterArr.auditTime)) == "object") {
    setAuditTimeArr(filterArr.auditTime)
  }
  if ((typeof (filterArr.auditState)) == "object") {
    setAuditStateArr(filterArr.auditState)
  }
  if ((typeof (filterArr.operationType)) == "object") {
    setOperationTypeArr(filterArr.operationType)
  }
  const jobIndustryLength = getJobIndustryArr().length
  const hrNameLength = getHRNameArr().length
  const confirmTimeLength = getConfirmTimeArr().length
  const auditTimeLength = getAuditTimeArr().length
  const auditStateLength = getAuditStateArr().length
  const operationTypeLenth = getOperationTypeArr().length




  // 按筛选条件重新加入数据
  tableData_1.forEach((valu: any, index: any, arr_1: any) => {

    // 所有筛选重置，即最初排序
    if (jobIndustryLength == 0 && hrNameLength == 0 && confirmTimeLength == 0 && auditTimeLength == 0 && auditStateLength == 0 && operationTypeLenth == 0) {
      if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
        tableData.push(valu)
      }

    }

    // 只筛选岗位行业
    else if (jobIndustryLength > 0 && hrNameLength == 0 && confirmTimeLength == 0 && auditTimeLength == 0 && auditStateLength == 0 && operationTypeLenth == 0) {

      if (getJobIndustryArr().includes(valu["jobIndustry"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {

          tableData.push(valu)
        }
      }
    }
    // 只筛选提交人（招聘者HR）姓名
    else if (jobIndustryLength == 0 && hrNameLength > 0 && confirmTimeLength == 0 && auditTimeLength == 0 && auditStateLength == 0 && operationTypeLenth == 0) {

      if (getHRNameArr().includes(valu["hrName"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 只筛选提交时间
    else if (jobIndustryLength == 0 && hrNameLength == 0 && confirmTimeLength > 0 && auditTimeLength == 0 && auditStateLength == 0 && operationTypeLenth == 0) {
      if (getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 只筛选审核时间
    else if (jobIndustryLength == 0 && hrNameLength == 0 && confirmTimeLength == 0 && auditTimeLength > 0 && auditStateLength == 0 && operationTypeLenth == 0) {
      if (getAuditTimeArr().includes(valu["auditTime"].split(" ")[0])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 只筛选审核状态
    else if (jobIndustryLength == 0 && hrNameLength == 0 && confirmTimeLength == 0 && auditTimeLength == 0 && auditStateLength > 0 && operationTypeLenth == 0) {
      if (getAuditStateArr().includes(valu["auditState"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 只筛选操作类型
    else if (jobIndustryLength == 0 && hrNameLength == 0 && confirmTimeLength == 0 && auditTimeLength == 0 && auditStateLength == 0 && operationTypeLenth > 0) {
      if (getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }

    // 筛选岗位行业、提交人（招聘者HR）姓名 110000
    else if (jobIndustryLength > 0 && hrNameLength > 0 && confirmTimeLength == 0 && auditTimeLength == 0 && auditStateLength == 0 && operationTypeLenth == 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getHRNameArr().includes(valu["hrName"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 筛选岗位行业、提交时间 101000
    else if (jobIndustryLength > 0 && hrNameLength == 0 && confirmTimeLength > 0 && auditTimeLength == 0 && auditStateLength == 0 && operationTypeLenth == 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 筛选岗位行业、审核时间 100100
    else if (jobIndustryLength > 0 && hrNameLength == 0 && confirmTimeLength == 0 && auditTimeLength > 0 && auditStateLength == 0 && operationTypeLenth == 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }

      }
    }
    // 筛选岗位行业、审核状态 100010
    else if (jobIndustryLength > 0 && hrNameLength == 0 && confirmTimeLength == 0 && auditTimeLength == 0 && auditStateLength > 0 && operationTypeLenth == 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getAuditStateArr().includes(valu["auditState"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }

      }
    }
    // 筛选岗位行业、操作类型 100001
    else if (jobIndustryLength > 0 && hrNameLength == 0 && confirmTimeLength == 0 && auditTimeLength == 0 && auditStateLength == 0 && operationTypeLenth > 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }

      }
    }
    // 筛选提交人（招聘者HR）姓名、提交时间 011000
    else if (jobIndustryLength == 0 && hrNameLength > 0 && confirmTimeLength > 0 && auditTimeLength == 0 && auditStateLength == 0 && operationTypeLenth == 0) {
      if (getHRNameArr().includes(valu["hrName"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }

      }
    }
    // 筛选提交人（招聘者HR）姓名、审核时间 010100
    else if (jobIndustryLength == 0 && hrNameLength > 0 && confirmTimeLength == 0 && auditTimeLength > 0 && auditStateLength == 0 && operationTypeLenth == 0) {
      if (getHRNameArr().includes(valu["hrName"]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }

      }
    }
    // 筛选提交人（招聘者HR）姓名、审核状态 010010
    else if (jobIndustryLength == 0 && hrNameLength > 0 && confirmTimeLength == 0 && auditTimeLength == 0 && auditStateLength > 0 && operationTypeLenth == 0) {
      if (getHRNameArr().includes(valu["hrName"]) && getAuditStateArr().includes(valu["auditState"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }

      }
    }
    // 筛选提交人（招聘者HR）姓名、操作类型 010001
    else if (jobIndustryLength == 0 && hrNameLength > 0 && confirmTimeLength == 0 && auditTimeLength == 0 && auditStateLength == 0 && operationTypeLenth > 0) {
      if (getHRNameArr().includes(valu["hrName"]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }

      }
    }
    // 提交时间、审核时间 001100
    else if (jobIndustryLength == 0 && hrNameLength == 0 && confirmTimeLength > 0 && auditTimeLength > 0 && auditStateLength == 0 && operationTypeLenth == 0) {
      if (getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }

      }
    }
    // 提交时间、审核状态 001010
    else if (jobIndustryLength == 0 && hrNameLength == 0 && confirmTimeLength > 0 && auditTimeLength == 0 && auditStateLength > 0 && operationTypeLenth == 0) {
      if (getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }

      }
    }
    // 提交时间、操作类型 001001
    else if (jobIndustryLength == 0 && hrNameLength == 0 && confirmTimeLength > 0 && auditTimeLength == 0 && auditStateLength == 0 && operationTypeLenth > 0) {
      if (getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 审核时间、审核状态 000110
    else if (jobIndustryLength == 0 && hrNameLength == 0 && confirmTimeLength == 0 && auditTimeLength > 0 && auditStateLength > 0 && operationTypeLenth == 0) {
      if (getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 审核时间、操作类型 000101
    else if (jobIndustryLength == 0 && hrNameLength == 0 && confirmTimeLength == 0 && auditTimeLength > 0 && auditStateLength == 0 && operationTypeLenth > 0) {
      if (getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 审核状态、操作类型 000011
    else if (jobIndustryLength == 0 && hrNameLength == 0 && confirmTimeLength == 0 && auditTimeLength == 0 && auditStateLength > 0 && operationTypeLenth > 0) {
      if (getAuditStateArr().includes(valu["auditState"]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }

    //筛选岗位行业、 筛选提交人（招聘者HR）姓名、提交时间 111000
    else if (jobIndustryLength > 0 && hrNameLength > 0 && confirmTimeLength > 0 && auditTimeLength == 0 && auditStateLength == 0 && operationTypeLenth == 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getHRNameArr().includes(valu["hrName"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    //筛选岗位行业、 筛选提交人（招聘者HR）姓名、审核时间 110100
    else if (jobIndustryLength > 0 && hrNameLength > 0 && confirmTimeLength == 0 && auditTimeLength > 0 && auditStateLength == 0 && operationTypeLenth == 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getHRNameArr().includes(valu["hrName"]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    //筛选岗位行业、 筛选提交人（招聘者HR）姓名、审核状态 110010
    else if (jobIndustryLength > 0 && hrNameLength > 0 && confirmTimeLength == 0 && auditTimeLength == 0 && auditStateLength > 0 && operationTypeLenth == 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getHRNameArr().includes(valu["hrName"]) && getAuditStateArr().includes(valu["auditState"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    //筛选岗位行业、 筛选提交人（招聘者HR）姓名、操作类型 110001
    else if (jobIndustryLength > 0 && hrNameLength > 0 && confirmTimeLength == 0 && auditTimeLength == 0 && auditStateLength == 0 && operationTypeLenth > 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getHRNameArr().includes(valu["hrName"]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    //筛选岗位行业、提交时间、审核时间 101100
    else if (jobIndustryLength > 0 && hrNameLength == 0 && confirmTimeLength > 0 && auditTimeLength > 0 && auditStateLength == 0 && operationTypeLenth == 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    //筛选岗位行业、提交时间、审核状态 101010
    else if (jobIndustryLength > 0 && hrNameLength == 0 && confirmTimeLength > 0 && auditTimeLength == 0 && auditStateLength > 0 && operationTypeLenth == 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    //筛选岗位行业、提交时间、操作类型 101001
    else if (jobIndustryLength > 0 && hrNameLength == 0 && confirmTimeLength > 0 && auditTimeLength == 0 && auditStateLength == 0 && operationTypeLenth > 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    //筛选岗位行业、审核时间、审核状态 100110
    else if (jobIndustryLength > 0 && hrNameLength == 0 && confirmTimeLength == 0 && auditTimeLength > 0 && auditStateLength > 0 && operationTypeLenth == 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    //筛选岗位行业、审核时间、操作类型 100101
    else if (jobIndustryLength > 0 && hrNameLength == 0 && confirmTimeLength == 0 && auditTimeLength > 0 && auditStateLength == 0 && operationTypeLenth > 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    //筛选岗位行业、审核状态、操作类型 100011
    else if (jobIndustryLength > 0 && hrNameLength == 0 && confirmTimeLength == 0 && auditTimeLength == 0 && auditStateLength > 0 && operationTypeLenth > 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getAuditStateArr().includes(valu["auditState"]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }

    // 筛选提交人（招聘者HR）姓名、提交时间、审核时间 011100
    else if (jobIndustryLength == 0 && hrNameLength > 0 && confirmTimeLength > 0 && auditTimeLength > 0 && auditStateLength == 0 && operationTypeLenth == 0) {
      if (getHRNameArr().includes(valu["hrName"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 筛选提交人（招聘者HR）姓名、提交时间、审核状态 011010
    else if (jobIndustryLength == 0 && hrNameLength > 0 && confirmTimeLength > 0 && auditTimeLength == 0 && auditStateLength > 0 && operationTypeLenth == 0) {
      if (getHRNameArr().includes(valu["hrName"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 筛选提交人（招聘者HR）姓名、提交时间、操作类型 011001
    else if (jobIndustryLength == 0 && hrNameLength > 0 && confirmTimeLength > 0 && auditTimeLength == 0 && auditStateLength == 0 && operationTypeLenth > 0) {
      if (getHRNameArr().includes(valu["hrName"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 筛选提交人（招聘者HR）姓名、审核时间、审核状态 010110
    else if (jobIndustryLength == 0 && hrNameLength > 0 && confirmTimeLength == 0 && auditTimeLength > 0 && auditStateLength > 0 && operationTypeLenth == 0) {
      if (getHRNameArr().includes(valu["hrName"]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 筛选提交人（招聘者HR）姓名、审核时间、操作类型 010101
    else if (jobIndustryLength == 0 && hrNameLength > 0 && confirmTimeLength == 0 && auditTimeLength > 0 && auditStateLength == 0 && operationTypeLenth > 0) {
      if (getHRNameArr().includes(valu["hrName"]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 筛选提交人（招聘者HR）姓名、审核状态、操作类型 010011
    else if (jobIndustryLength == 0 && hrNameLength > 0 && confirmTimeLength == 0 && auditTimeLength == 0 && auditStateLength > 0 && operationTypeLenth > 0) {
      if (getHRNameArr().includes(valu["hrName"]) && getAuditStateArr().includes(valu["auditState"]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }

    // 提交时间、审核时间、审核状态 001110
    else if (jobIndustryLength == 0 && hrNameLength == 0 && confirmTimeLength > 0 && auditTimeLength > 0 && auditStateLength > 0 && operationTypeLenth == 0) {
      if (getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 提交时间、审核时间、操作类型 001101
    else if (jobIndustryLength == 0 && hrNameLength == 0 && confirmTimeLength > 0 && auditTimeLength > 0 && auditStateLength == 0 && operationTypeLenth > 0) {
      if (getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 提交时间、审核状态、操作类型 001011
    else if (jobIndustryLength == 0 && hrNameLength == 0 && confirmTimeLength > 0 && auditTimeLength == 0 && auditStateLength > 0 && operationTypeLenth > 0) {
      if (getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 审核时间、审核状态、操作类型 000111
    else if (jobIndustryLength == 0 && hrNameLength == 0 && confirmTimeLength == 0 && auditTimeLength > 0 && auditStateLength > 0 && operationTypeLenth > 0) {
      if (getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }

    // 筛选岗位行业、提交人（招聘者HR）姓名、提交时间、审核时间 111100
    else if (jobIndustryLength > 0 && hrNameLength > 0 && confirmTimeLength > 0 && auditTimeLength > 0 && auditStateLength == 0 && operationTypeLenth == 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getHRNameArr().includes(valu["hrName"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 筛选岗位行业、提交人（招聘者HR）姓名、提交时间、审核状态 111010
    else if (jobIndustryLength > 0 && hrNameLength > 0 && confirmTimeLength > 0 && auditTimeLength == 0 && auditStateLength > 0 && operationTypeLenth == 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getHRNameArr().includes(valu["hrName"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }

    // 筛选岗位行业、提交人（招聘者HR）姓名、提交时间、操作类型 111001
    else if (jobIndustryLength > 0 && hrNameLength > 0 && confirmTimeLength > 0 && auditTimeLength == 0 && auditStateLength == 0 && operationTypeLenth > 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getHRNameArr().includes(valu["hrName"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 筛选岗位行业、提交人（招聘者HR）姓名、审核时间、审核状态 110110
    else if (jobIndustryLength > 0 && hrNameLength > 0 && confirmTimeLength == 0 && auditTimeLength > 0 && auditStateLength > 0 && operationTypeLenth == 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getHRNameArr().includes(valu["hrName"]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 筛选岗位行业、提交人（招聘者HR）姓名、审核时间、操作类型 110101
    else if (jobIndustryLength > 0 && hrNameLength > 0 && confirmTimeLength == 0 && auditTimeLength > 0 && auditStateLength == 0 && operationTypeLenth > 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getHRNameArr().includes(valu["hrName"]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 筛选岗位行业、提交人（招聘者HR）姓名、审核状态、操作类型 110011
    else if (jobIndustryLength > 0 && hrNameLength > 0 && confirmTimeLength == 0 && auditTimeLength == 0 && auditStateLength > 0 && operationTypeLenth > 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getHRNameArr().includes(valu["hrName"]) && getAuditStateArr().includes(valu["auditState"]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 筛选岗位行业、提交时间、审核时间、审核状态 101110
    else if (jobIndustryLength > 0 && hrNameLength == 0 && confirmTimeLength > 0 && auditTimeLength > 0 && auditStateLength > 0 && operationTypeLenth == 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 筛选岗位行业、提交时间、审核时间、操作类型 101101
    else if (jobIndustryLength > 0 && hrNameLength == 0 && confirmTimeLength > 0 && auditTimeLength > 0 && auditStateLength == 0 && operationTypeLenth > 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 筛选岗位行业、提交时间、审核状态、操作类型 101011
    else if (jobIndustryLength > 0 && hrNameLength == 0 && confirmTimeLength > 0 && auditTimeLength == 0 && auditStateLength > 0 && operationTypeLenth > 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 筛选岗位行业、审核时间、审核状态、操作类型 100111
    else if (jobIndustryLength > 0 && hrNameLength == 0 && confirmTimeLength == 0 && auditTimeLength > 0 && auditStateLength > 0 && operationTypeLenth > 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 提交人（招聘者HR）姓名、提交时间、审核时间、审核状态 011110
    else if (jobIndustryLength == 0 && hrNameLength > 0 && confirmTimeLength > 0 && auditTimeLength > 0 && auditStateLength > 0 && operationTypeLenth == 0) {
      if (getHRNameArr().includes(valu["hrName"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 提交人（招聘者HR）姓名、提交时间、审核时间、操作类型 011101
    else if (jobIndustryLength == 0 && hrNameLength > 0 && confirmTimeLength > 0 && auditTimeLength > 0 && auditStateLength == 0 && operationTypeLenth > 0) {
      if (getHRNameArr().includes(valu["hrName"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 提交人（招聘者HR）姓名、提交时间、审核状态、操作类型  011011
    else if (jobIndustryLength == 0 && hrNameLength > 0 && confirmTimeLength > 0 && auditTimeLength == 0 && auditStateLength > 0 && operationTypeLenth > 0) {
      if (getHRNameArr().includes(valu["hrName"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 提交人（招聘者HR）姓名、审核时间、审核状态、操作类型 010111 
    else if (jobIndustryLength == 0 && hrNameLength > 0 && confirmTimeLength == 0 && auditTimeLength > 0 && auditStateLength > 0 && operationTypeLenth > 0) {
      if (getHRNameArr().includes(valu["hrName"]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    // 提交时间、审核时间、审核状态、操作类型 001111
    else if (jobIndustryLength == 0 && hrNameLength == 0 && confirmTimeLength > 0 && auditTimeLength > 0 && auditStateLength > 0 && operationTypeLenth > 0) {
      if (getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    //筛选岗位行业、提交人（招聘者HR）姓名、提交时间、审核时间、审核状态 111110
    else if (jobIndustryLength > 0 && hrNameLength > 0 && confirmTimeLength > 0 && auditTimeLength > 0 && auditStateLength > 0 && operationTypeLenth == 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getHRNameArr().includes(valu["hrName"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    //筛选岗位行业、提交人（招聘者HR）姓名、提交时间、审核时间、操作类型 111101
    else if (jobIndustryLength > 0 && hrNameLength > 0 && confirmTimeLength > 0 && auditTimeLength > 0 && auditStateLength == 0 && operationTypeLenth > 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getHRNameArr().includes(valu["hrName"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    //筛选岗位行业、提交人（招聘者HR）姓名、提交时间、审核状态、操作类型 111011
    else if (jobIndustryLength > 0 && hrNameLength > 0 && confirmTimeLength > 0 && auditTimeLength == 0 && auditStateLength > 0 && operationTypeLenth > 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getHRNameArr().includes(valu["hrName"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    //筛选岗位行业、提交人（招聘者HR）姓名、审核时间、审核状态、操作类型 110111
    else if (jobIndustryLength > 0 && hrNameLength > 0 && confirmTimeLength == 0 && auditTimeLength > 0 && auditStateLength > 0 && operationTypeLenth > 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getHRNameArr().includes(valu["hrName"]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    //筛选岗位行业、提交时间、审核时间、审核状态、操作类型 101111
    else if (jobIndustryLength > 0 && hrNameLength == 0 && confirmTimeLength > 0 && auditTimeLength > 0 && auditStateLength > 0 && operationTypeLenth > 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    //提交人（招聘者HR）姓名、提交时间、审核时间、审核状态、操作类型 011111
    else if (jobIndustryLength == 0 && hrNameLength > 0 && confirmTimeLength > 0 && auditTimeLength > 0 && auditStateLength > 0 && operationTypeLenth > 0) {
      if (getHRNameArr().includes(valu["hrName"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
    //筛选岗位行业、提交人（招聘者HR）姓名、提交时间、审核时间、审核状态、操作类型
    else if (jobIndustryLength > 0 && hrNameLength > 0 && confirmTimeLength > 0 && auditTimeLength > 0 && auditStateLength > 0 && operationTypeLenth > 0) {
      if (getJobIndustryArr().includes(valu["jobIndustry"]) && getHRNameArr().includes(valu["hrName"]) && getConfirmTimeArr().includes(valu["confirmTime"].split(" ")[0]) && getAuditTimeArr().includes(valu["auditTime"].split(" ")[0]) && getAuditStateArr().includes(valu["auditState"]) && getOperationTypeArr().includes(valu["operationType"])) {
        if (tableData.findIndex((item: { auditId: string; }) => item.auditId == valu["auditId"]) == -1) {
          tableData.push(valu)
        }
      }
    }
  })
}


// // 岗位名称筛选排序
// const filterJob = (
//   value: string,
//   row: Jobs,
//   column: TableColumnCtx<Jobs>
// ) => {
//   // const property = column['property']
//   return row["jobIndustry"] === value
// }

const filterJobNameData: filterType[] = reactive([])

// // HR姓名筛选排序
// const filterHR = (
//   value: string,
//   row: Jobs,
//   column: TableColumnCtx<Jobs>
// ) => {
//   // const property = column['property']
//   return row["hrName"] === value
// }
const filterHRData: filterType[] = reactive([])

// // 提交时间筛选排序
// const filterConfirmTime = (
//   value: string,
//   row: Jobs,
//   column: TableColumnCtx<Jobs>
// ) => {
//   // const property = column['property']
//   return row["confirmTime"].split(" ")[0] === value
// }
const filterConfirmTimeData: filterType[] = reactive([])
// // 审核时间筛选排序
// const filterAduitTime = (
//   value: string,
//   row: Jobs,
//   column: TableColumnCtx<Jobs>
// ) => {
//   // const property = column['property']
//   if (value != "null") {


//     return row["auditTime"].split(" ")[0] === value
//   } else {
//     return row["auditTime"] === value
//   }

// }
const filterAduitTimeData: filterType[] = reactive([])

// // 审核状态筛选排序
// const filterAduitState = (
//   value: string,
//   row: Jobs,
//   column: TableColumnCtx<Jobs>
// ) => {
//   // const property = column['property']
//   return row["auditState"] === value
// }
const filterAduitStateData: filterType[] = reactive([])

// // 操作类型筛选排序
// const filterOperationType = (
//   value: string,
//   row: Jobs,
//   column: TableColumnCtx<Jobs>
// ) => {
//   // const property = column['property']
//   return row["operationType"] === value
// }
const filterOperationTypeData: filterType[] = reactive([])



// 分页器
const page = ref(1)
const pagesizes = ref([1, 2, 3, 4, 10, 20, 30, 40])
const limit = ref(10)

const handleSizeChange = (val: number) => {
  limit.value = val
  page.value = 1
}
const handleCurrentChange = (val: number) => {
  page.value = val
}

// 查看具体修改的内容
const preAuditJobInfoDialog = ref(false)

const job = store.state.adminState.auditjob
const getPreAuditJobInfo = (auditId: string) => {
  const newData = {
    ...data(),
    auditId: auditId
  }
  ePreAuditJobs(newData).then((res: any) => {
    if (res.data["code"] == "200") {
      job.auditId = res.data.datas[0].auditId
      job.jobId = res.data.datas[0].jobId
      job.jobName = res.data.datas[0].jobName
      job.jobNature = res.data.datas[0].jobNature
      job.jobAddress = res.data.datas[0].jobAddress
      job.jobEdu = res.data.datas[0].jobEdu
      job.jobAge = res.data.datas[0].jobAge
      job.jobEx = res.data.datas[0].jobEx
      job.jobSalary = res.data.datas[0].jobSalary
      job.jobIndustry = res.data.datas[0].jobIndustry
      job.jobDetail = res.data.datas[0].jobDetail


      job.hrId = res.data.datas[0].hrId
      job.hrName = res.data.datas[0].hrName
      job.hrEmail = res.data.datas[0].hrEmail
      job.hrPhone = res.data.datas[0].hrPhone

      job.isAudit = res.data.datas[0].isAudit
      job.auditTime = res.data.datas[0].auditTime
      job.confirmTime = res.data.datas[0].confirmTime
      job.auditState = res.data.datas[0].auditState
      job.operationType = res.data.datas[0].operationType
      job.auditResultContent = res.data.datas[0].auditResultContent

      job.eId = res.data.datas[0].eId
      job.businessName = res.data.datas[0].businessName

      preAuditJobInfoDialog.value = true
    } else if (res.data["code"] == "300") {
      elmessage(res.data["message"], res.data["type"])
      setTimeout(() => {
        router.replace("/login")
      }, 500);
      localStorage.clear()
    } else {
      console.log(res.data["message"]);

    }

  })
}
const handleShowJObInfo = (index: number, row: Jobs) => {
  getPreAuditJobInfo(row.auditId)
}

const closePreAuditJobInfoDialog = () => {
  preAuditJobInfoDialog.value = false
}


const init = () => {
  eGetAuditJobs(data()).then((res: any) => {
    if (res.data["code"] == "200") {
      res.data.datas.forEach((value: any, index: any, self: any) => {
        tableData.push(value)
        tableData_1.push(value)
      })
      res.data["industrys"].forEach((value: any, index: any, self: any) => {
        filterJobNameData.push(value)
      });
      res.data["hrname"].forEach((value: any, index: any, self: any) => {
        filterHRData.push(value)
      });
      res.data["confirmtime"].forEach((value: any, index: any, self: any) => {
        filterConfirmTimeData.push(value)
      });
      res.data["audittime"].forEach((value: any, index: any, self: any) => {
        filterAduitTimeData.push(value)
      });
      res.data["auditstate"].forEach((value: any, index: any, self: any) => {
        filterAduitStateData.push(value)
      });
      res.data["operationtype"].forEach((value: any, index: any, self: any) => {
        filterOperationTypeData.push(value)
      });
    } else if (res.data["code"] == "300") {
      elmessage(res.data["message"], res.data["type"])
      setTimeout(() => {
        router.replace("/login")
      }, 500);
      localStorage.clear()
    } else {
      console.log(res.data["message"]);

    }
  })
}

onBeforeMount(() => {
  init()
})


</script>
<style scoped>
.pagination {
  float: right;
  margin-right: 50px;
  /* right: 150px; */
}

.resume_center {
  font-family: '微软雅黑';
  height: 800px;
  background-color: #FFF;
}

.resume_header {
  background-color: rgb(215, 215, 215);
  height: 50px;
  display: flex;
  align-items: center;
  padding-left: 20px;
  justify-content: space-between;
}

a {
  text-decoration: none;
  color: #000;
}
</style>